package com.vhall.component.entity.room;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author bp.wangshuai1
 * @date 2022/3/11 15:44
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("room_config")
public class RoomConfig implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 直播间id
     */
    @TableField("room_id")
    @JsonProperty(value = "room_id")
    private String roomId;

    /**
     * 直播间整数id
     */
    @TableField("il_id")
    @JsonProperty(value = "il_id")
    private Integer ilId;

    /**
     * 用户id
     */
    @TableField("account_id")
    @JsonProperty(value = "account_id")
    private Integer accountId;

    /**
     * 建值
     */
    @TableField("config_key")
    @JsonProperty(value = "config_key")
    private String configKey;

    /**
     * value值
     */
    @TableField("config_value")
    @JsonProperty(value = "config_value")
    private Integer configValue;

    /**
     * 创建时间
     */
    @TableField("created_at")
    @JsonProperty(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    @JsonProperty(value = "updated_at")
    private LocalDateTime updatedAt;

    private static final long serialVersionUID = 1L;


}